//
//  OMServiceModalSubmitViewController.h
//  OMENGO
//
//  Created by 梁尚嘉 on 2016/12/23.
//  Copyright © 2016年 Kamfat. All rights reserved.
//

#import "BaseTableViewController.h"
#import "OMProduct.h"
#import "OMDeliveryInfo.h"
#import "KTEleInputTableCell.h"
#import "OMCommonAddressTableCell.h"
#import "XZLDatePickerView.h"
#import "OMDeliveryAddressViewController.h"
#import "KTLemonPaymentViewController.h"
#import "OMCheapModel.h"
#import "OMCouponSelectionViewController.h"
@interface OMServiceModalSubmitViewController : BaseTableViewController <OMSelectionCtrlProtocol,OMDeliveryAddressViewCtrlDelegate>
{
    OMDeliveryInfo *_deliveryInfo;
    OMProduct *_product;
    __weak OMSpecificationItem  *_selectedSpec;
    NSArray *_cellArray;
    KTEleInputTableCell *_couponCell;
    OMCheapModel *_selectedCoupon;
}
@property (nonatomic, strong) UIButton *confirmButton;
@property (nonatomic, strong) UILabel *prizeLabel;
@property (nonatomic, strong) NSArray <OMCheapModel*> *coupons;
@property (nonatomic, assign) float singlePrice;
@property (nonatomic, strong) OMProduct *product;
@property (nonatomic, copy) NSString *productKey;
@property (nonatomic, weak) OMSpecificationItem *selectedSpec; //选择的规格
@property (nonatomic, strong) OMDeliveryInfo *deliveryInfo;
@property (nonatomic, assign) NSUInteger quantity;

@property (nonatomic, copy) NSString *requestUrl;

@property (nonatomic, strong) NSArray *cellArray;
@property (nonatomic, strong) KTEleInputTableCell *couponCell;
@property (nonatomic, strong) OMCommonAddressTableCell *addressCell;

@property (nonatomic, strong) OMCheapModel *selectedCoupon;

//replace system viewdidload method
- (void)configure;

- (void)submitWithoutPaymentWithParameters:(NSDictionary *)parameters;
- (void)submitWithParameters:(NSDictionary *)parameters;
- (void)gotoSelectCoupon;
- (void)setPrize:(NSString *)price;
- (void)submitAction:(UIButton *)button;
- (void)selectionViewWithTitle:(NSString *)title
                     dataArray:(NSArray <NSString *>*)dataArray
                      OnSelect:(void (^)(NSInteger index))selection;
@end
